{%include file="header.html"%}
<form action="{%$formAction%}" method="POST" {%if $is_validator%} id="adminform" onsubmit="return Validator.Validate(this)" {%/if%}>
<table width="100%" border="0" class="adminlist" cellspacing="0">

  <thead>
  <tr>
 	 <th><input id="toggle" type="checkbox" value=""/></th>
    <th>{%$systemLang.sort%}</th>
    <th>{%$systemLang.name%}</th>
    <th>{%$systemLang.role%}</th>
    <th>{%$systemLang.url%}</th>
    <th>{%$systemLang.operate%}</th>
  </tr>
  </thead>
  <tbody>
  {%foreach from=$menu item="menu" key="a"%}
  <tr class="row0">
   <td><input name="select_id[]" type="checkbox" class="checkbox" id="cb{%$a++%}" value="{%$menu.menu_id%}" /><input name="menuid[]" type="hidden" class="checkbox" value="{%$menu.menu_id%}" /></td>
   <td><input name="orders[]" value="{%$menu.menu_order%}" class="text" style="width:40px; text-align:center;" dataType='Number' msg='{%$systemLang.sortDesc%}'/></td>
    <td>{%$menu.menu_name%}&nbsp;</td>
    <td>{%$menu.menu_roles%}&nbsp;</td>
    <td>{%$menu.menu_url%}&nbsp;</td>
   	<td>
        <a href="{%$smarty.const.BASEURI%}menu/edit/{%$menu.menu_id%}">{%$systemLang.edit%}</a>&nbsp;
        <a href="{%$smarty.const.BASEURI%}menu/delete/{%$menu.menu_id%}" {%$smarty.const.IS_DELETE%}>{%$systemLang.del%}</a>
    </td>
  </tr>
  {%/foreach%}
  </tbody>
  <tfoot>
  <tr>
    <td colspan="5">
    <input type="button"  value="{%$systemLang.del%}" onclick="select_control('{%$smarty.const.BASEURI%}menu/delete','{%$systemLang.delConfirm%}')" class="button"/>
    <input type="button"  value="{%$systemLang.sort%}" onclick="submitform('{%$smarty.const.BASEURI%}menu/order',true)" class="button"/>
    <input type="button" value="{%$systemLang.add%}" name="sb" class="button" onclick="button_location('{%$smarty.const.BASEURI%}menu/add')" accesskey="N">
    </td>
  </tr>

  </tfoot>
</table>
</form>
